package com.xiaomi.front.service.advertisement;

import com.xiaomi.front.dao.Advertisement.AdvertisementDao;
import com.xiaomi.pojo.Advertisement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdvertisementImpl implements AdvertisementService {

    @Autowired
    private AdvertisementDao advertisementDao;

    //1/2级广告显示
    @Override
    public List<Advertisement> FindAdver() {
        return advertisementDao.FindAdver();
    }

    //3/4级广告显示
    @Override
    public Advertisement Find3(int id, int type_id) {
        return advertisementDao.Find3(id, type_id);
    }
}
